package com.bestcem.xm.qdes.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bestcem.xm.component.mybatis.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ds_qdes_namelist")
public class QdesNameList extends BaseEntity {

    @TableId(value = "id")
    private String id;

    /**
     * 问卷id
     */
    @TableField(value = "project_id")
    @JsonProperty("project_id")
    private String projectId;

    /**
     * 问卷结构ID
     */
    @TableField(value = "struct_id")
    @JsonProperty("structID")
    private String structId;

    /**
     * 问题全局ID
     */
    @TableField(value = "gid")
    private Integer gid;

    /**
     * 类型
     */
    @TableField(value = "ntype")
    private Integer ntype;

    /**
     * 名单列表，json列表
     */
    @TableField(value = "data")
    private String data;

    /**
     * 名单版本号
     */
    @TableField(value = "version")
    private Integer version;

    /**
     * 是否启用
     */
    @TableField(value = "enable")
    private Boolean enable;
}